<?xml version="1.0"?>
<!--
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   Mage
 * @package    Mage_Core
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
-->
<config>
    <global>
        <install>
            <date><![CDATA[Thu, 30 Jan 2014 18:40:44 +0000]]></date>
        </install>
        <crypt>
            <key><![CDATA[<%= @key %>]]></key>
        </crypt>
        <disable_local_modules>false</disable_local_modules>
        <resources>
            <db>
                <table_prefix><![CDATA[]]></table_prefix>
            </db>
            <default_setup>
                <connection>
                    <host><![CDATA[<%= @dbhost %>]]></host>
                    <username><![CDATA[<%= @dbuser %>]]></username>
                    <password><![CDATA[<%= @dbpass %>]]></password>
                    <dbname><![CDATA[<%= @app_name %>]]></dbname>
                    <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
                    <model><![CDATA[mysql4]]></model>
                    <type><![CDATA[pdo_mysql]]></type>
                    <pdoType><![CDATA[]]></pdoType>
                    <active>1</active>
                </connection>
            </default_setup>
        </resources>
        <session_save><![CDATA[db]]></session_save>
<% if @redis_session_store -%>
        <redis_session>                     
            <host><%= @redis_host %></host>
            <port>6379</port>
            <password></password> 
            <timeout>2.5</timeout>    
            <persistent></persistent>
            <db>0</db>
            <compression_threshold>2048</compression_threshold>
            <compression_lib>gzip</compression_lib>
            <log_level>1</log_level>
            <max_concurrency>6</max_concurrency>
            <break_after_frontend>5</break_after_frontend>
            <break_after_adminhtml>30</break_after_adminhtml>
            <bot_lifetime>7200</bot_lifetime>
        </redis_session>
<% end 
   if @redis_page_caching -%>
        <cache>
            <backend>Mage_Cache_Backend_Redis</backend>
            <backend_options>
              <server><%= @redis_host %></server>
              <port>6379</port>
              <persistent></persistent>  <!-- Specify a unique string like "cache-db0" to enable persistent connections. -->
              <database>2</database>
              <password></password>
              <force_standalone>1</force_standalone>  <!-- 0 for phpredis, 1 for standalone PHP -->
              <connect_retries>1</connect_retries>    <!-- Reduces errors due to random connection failures -->
              <read_timeout>10</read_timeout>         <!-- Set read timeout duration -->
              <automatic_cleaning_factor>0</automatic_cleaning_factor> <!-- Disabled by default -->
              <compress_data>1</compress_data>        <!-- 0-9 for compression level, recommended: 0 or 1 -->
              <compress_tags>1</compress_tags>        <!-- 0-9 for compression level, recommended: 0 or 1 -->
              <compress_threshold>20480</compress_threshold>  <!-- Strings below this size will not be compressed -->
              <compression_lib>gzip</compression_lib> <!-- Supports gzip, lzf and snappy -->
            </backend_options>
        </cache>   
<% end -%>
    </global>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <frontName><![CDATA[admin]]></frontName>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>